machine
Type
function
Summary
Returns the type of hardware the application is running on.
Syntax
the machine
machine()
Description
Use the machine function to detect what type of system your application is running on.
On Mac OS systems, the machine function uses the Gestalt() system call to determine the machine type.
On Unix systems, the machine function uses the uname() system function.
On Android devices, the machine function returns the manufacturer's name for the device. For example, if running on a Google Nexus One, the string is "Nexus One".
Examples
the machine
if the machine contains "Powerbook" then checkBattery
Related
keyword: string
control structure: function
function: processor
glossary: application, return
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile